<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Pragma" CONTENT="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="renderer" content="webkit">
		<%include("/common/include.html"){}%>
	</head>
	<script type="text/javascript">
		var submitForm = function($dialog, $grid, $tree, $pjq) {
			$dialog.dialog('destroy');
		};	
	</script>
	<body>
	<script type="text/javascript">

		$(document).ready(function(){
			var ids = $("#customerIds").val();
			$("#tablevisit").datagrid({
				queryParams: {
					'_query.ids': ids
				},
				singleSelect: true,
				rownumbers: true, //显示序号
				pagination: true,
				pageSize: 10,
				url:'${cxt!}/scallVisit/showscallVisit2',
				collapsible: true,
				columns:[[
					{field:'visitdate',title:'回访时间',width:130,align:'center'},
					{field:'subject',title:'回访内容',width:130,align:'center'},
					{field:'issatisfaction',title:'满意度',width:130,align:'center',
						formatter:function(value,row,index){
							if(value == 1){
								return '满意';
							}else if(value==2){
								return '一般';
							}else if(value==3){
								return '差';
							}
						}},
					{field:'advice',title:'顾客建议',width:130,align:'center'},
				]]
			});
		});

</script> 
		<div>
			<input hidden="hidden" id="customerIds" value="${customerIds!}"   />
		</div>
			<table id="tablevisit">
			</table>
			
	</body>
</html>